package com.anpy.anlibrary

import android.app.Application
import com.anpy.anlibrary.net.JsonStyle
import com.anpy.anlibrary.net.Settings
import com.anpy.anlibrary.utils.InitUtils

open class AnLibApplication : Application() {

    override fun onCreate() {
        super.onCreate()
        InitUtils.init(this)

        Settings.init {
            appCtx = this@AnLibApplication
            baseUrl = "http://192.168.2.106:10000"
            isDEBUG = BuildConfig.DEBUG
            objectStyle = JsonStyle().apply {
                result = "result"
                code = "code"
            }
        }
    }

}